package com.zp.qualitypractice.mvp3;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by izp on 2017/6/11.
 */

public abstract class MVPBaseActivity<T extends MVPBase.BasePresenter> extends AppCompatActivity implements MVPBase.BaseView<T>{
    T mPresenter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPresenter = createPresenter();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        mPresenter = null;
    }
}
